//
//  RecordWrapper.h
//  MoneyLog
//
//  Created by Max on 11-3-1.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@class KindWrapper;

@interface RecordWrapper : NSObject {

	int         id;					//序列Id
	NSString    *type;              //类别
	NSString    *kind;              //种类
    int         kindId;             //种类Id
	NSString    *subKind;           //子类		
    KindWrapper *kindWrapper;
    
	double      money;              //金额
	NSString    *remark;            //备注
	NSString    *account;           //帐户
    NSString    *money_kind;        //币种
	NSString    *datetime;          //时间
	NSDate      *date;              //日期
    int         year;
    int         month;
    int         day;
    
    double      latitude;           //纬度
    double      longitude;          //经度
    NSData      *imageData;         //图片
}

@property (assign)           int            id;
@property (nonatomic,retain) NSString       *type;
@property (nonatomic,retain) NSString       *kind;
@property (assign)           int            kindId;
@property (nonatomic,retain) NSString       *subKind;
@property (nonatomic,retain) KindWrapper    *kindWrapper;

@property (assign)           double         money;
@property (nonatomic,retain) NSString       *remark;
@property (nonatomic,retain) NSString       *account;
@property (nonatomic,retain) NSString       *money_kind;
@property (nonatomic,retain) NSDate         *date;
@property (nonatomic,retain) NSString       *datetime;
@property (assign)           int            year;
@property (assign)           int            month;
@property (assign)           int            day;

@property (assign)           double         latitude;
@property (assign)           double         longitude;
@property (nonatomic,retain)  NSData        *imageData;

@end
